<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<head>
	<meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
	<title>百度外卖</title>
	<link rel="stylesheet" type="text/less" href="__PUBLIC__/css/common.less">
	<link rel="stylesheet" type="text/less" href="__PUBLIC__/css/shoplist.less">
	<script type="text/javascript" src="__PUBLIC__/js/less-1.5.0.min.js"></script>
	<hdjs/>
	<script type="text/javascript">
		var s = '{$hd.get.s|default:0}';
		var cnid = {$hd.get.cnid|default:0}
	</script>
	<script type="text/javascript" src="__PUBLIC__/js/shoplist.js"></script>
	<script type="text/javascript" src="__PUBLIC__/js/login.js"></script>
	
</head>
<body>
	<include file='__VIEW__/common/header.html'/>
	<div id="ad" class="caitant">
		<a href="">
		<img src="__PUBLIC__/image/da6dbccf26d88aaa76a5927389128bba.jpg">
		</a>
	</div>

	<!-- 分类 -->

	<div id="shop_classify" class="caitant">
		<div class="tab_Control">
			<ul>
			<li class="item-index-0">
			<a href="{|U:'Storelist/index'}">
			<div class="item-img">
				<b class="default_img"<if value='!empty({$hd get.cnid})'>style="opacity:1"</if>></b>
				<b class="default_hover"></b>
			</div>
			<em class="pink">全部</em>
			<div class="item-line"></div>
			</a>
			</li>
			<li class="item-index-1">
			<a href="{|U:'Storelist/index',array('cnid'=>1)}">
			<div class="item-img">
				<b class="default_img"  <if value='{$hd get.cnid==1}'>style="opacity:0"</if>></b>
				<b class="default_hover"></b>
			</div>
			<em>品牌快餐</em>
			<div class="item-line"></div>
			</a>
			</li>
			<li class="item-index-2">
			<a href="{|U:'Storelist/index',array('cnid'=>2)}">
			<div class="item-img" >
				<b class="default_img"  <if value='{$hd get.cnid==2}'>style="opacity:0"</if>></b>
				<b class="default_hover"></b>
			</div>
			<em>中式正餐</em>
			<div class="item-line"></div>
			</a>
			</li>
			<li class="item-index-3">
			<a href="{|U:'Storelist/index',array('cnid'=>3)}">
			<div class="item-img">
				<b class="default_img" <if value='{$hd get.cnid==3}'>style="opacity:0"</if>></b>
				<b class="default_hover"></b>
			</div>
			<em>小吃快餐</em>
			<div class="item-line"></div>
			</a>
			</li>
			<li class="item-index-4">
			<a href="{|U:'Storelist/index',array('cnid'=>4)}">
			<div class="item-img">
				<b class="default_img" <if value='{$hd get.cnid==4}'>style="opacity:0"</if>></b>
				<b class="default_hover"></b>
			</div>
			<em>日韩料理</em>
			<div class="item-line"></div>
			</a>
			</li>
			<li class="item-index-5">
			<a href="{|U:'Storelist/index',array('cnid'=>5)}">
			<div class="item-img">
				<b class="default_img" <if value='{$hd get.cnid==5}'>style="opacity:0"</if>></b>
				<b class="default_hover"></b>
			</div>
			<em>咖啡甜品</em>
			<div class="item-line"></div>
			</a>
			</li>
			<li class="item-index-6">
			<a href="{|U:'Storelist/index',array('cnid'=>6)}">
			<div class="item-img">
				<b class="default_img" <if value='{$hd get.cnid==6}'>style="opacity:0"</if>></b>
				<b class="default_hover"></b>
			</div>
			<em>面包蛋糕</em>
			</a>
			</li>
			</ul>
		</div>
		<?php 
		
			$s = explode(',', $_GET['s']);

		 ?>
		<div class="filter-bottom">
			<ul class="filter-option">
				<li class="option-item <?php if(in_array('jian', $s)): ?>f-selected<?php endif ?>" data-type='jian'>
					<i></i>
					<span>立减优惠</span>
				</li>
				<li class="option-item <?php if(in_array('mian', $s)): ?>f-selected<?php endif ?>" data-type='mian'>
					<i></i>
					<span>免配送费</span>
				</li>
				<li class="option-item <?php if(in_array('piao', $s)): ?>f-selected<?php endif ?>" data-type='piao'>
					<i></i>
					<span>支持开发票</span>
				</li>
			</ul>
			<div class="filter-search">
				<input id="f-input" class="f-input placeholder-con" type="text" value="" placeholder="输入餐厅名搜索">
				<button id="f-search" class="f-search"></button>
			</div>
		</div>
	</div>

	<div id="shop_list" class="caitant">
	<if value='!empty($Storedata)'>
		<ul>
		
		<foreach from='$Storedata' value='$v'>
			<li class="list-f">
				<a href="{|U:'Content/index',array('stid'=>$v['stid'])}" style="display:block;position:absolute;left:0;top:0px;width: 228px;height: 262px;"></a>
				<div class="shop_img">
					<img width="228" src="__ROOT__/{$v.thumb}" alt="{$v.stname}" />
				</div>
				<div class="shop_info">
					<div class="title">{$v.stname}</div>
					<div class="s-info">
						<div class="star-control">
							<span class="rate">
								<span class="rate-inner" style="width:{$v.grade}px"></span>
							</span>

						</div>
						<div class="sell">
							 已售<span>{$v.sellnub}</span>份 
						</div>
					</div>

					<div class="price">
						<em>起送：¥{$v.risedelivery}</em>
						<em>配送：¥{$v.delivery}</em>
						<em class="time">{$v.deliverytime}分钟</em>
				</div>

				<div class="feature">
					<if value='in_array("jian",explode(",", $v["favorable"]))'>
					<em class="jian-min-icon premium-icon" data-msg="下单立减6元，每天2单"></em>
					</if>
					<if value='in_array("mian",explode(",", $v["favorable"]))'>
					<em class="mian-min-icon premium-icon" data-msg="下单免配送费，每天2单"></em>
					</if>
					<if value='in_array("piao",explode(",", $v["favorable"]))'>
					<em class="invoice-min-icon premium-icon" data-msg="支持开发票"></em>
					</if>
					<!-- <if value='jian == $v["pingying"]'>
					<em class="jian-min-icon premium-icon" data-msg="下单立减6元，每天2单"></em>
					</if>
					<if value='mian == $v["pingying"]'>
					<em class="mian-min-icon premium-icon" data-msg="下单免配送费，每天2单"></em>
					</if>
					<if value='piao == $v["pingying"]'>
					<em class="invoice-min-icon premium-icon" data-msg="支持开发票"></em>
					</if> -->

				</div>

				<div class="overlay">
				<div class="o-con">
				<div class="shop-title">
				<p>{$v.stname}</p>
				</div>
				<div class="shop-feature">
				<ul>
				<if value='in_array("减",explode(",", $v["favorable"]))'>
				<li>
				<em class="jian-min-icon premium-icon"></em>
				<p>下单立减6元，每天2单</p>
				</li>
				</if>

				<if value='in_array("免",explode(",", $v["favorable"]))'>
				<li>
				<em class="mian-min-icon premium-icon"></em>
				<p>下单免配送费，每天2单</p>
				</li>
				</if>


				<if value='in_array("票",explode(",", $v["favorable"]))'>
				<li>
				<em class="invoice-min-icon premium-icon"></em>
				<p>支持开发票</p>
				</li>
				</if>


				</ul>
				</div>
				<div class="shop-notice">
				<h2>商家公告</h2>
				<p> {$v.bulletin} </p>
				</div>
				</div>
				<div class="o-arrow"></div>
				</div>
			</li>
			</foreach>

			
		</ul>
		<else>

		<div class="default_null">
			<img alt="" src="__PUBLIC__/image/noresult_b2672ee.png">
			<p class="msg">抱歉，没有找到相关商户</p>
			<p>
			<a href="{|U:'Storelist'}">返回重新查找</a>
			</p>
		</div>
			</if>
	</div>
</body>
</html>